package hoaitt.vnu.edu.problem6;

public class SumSquareDiffr {
	
	
	public static void main(String[] args) {
		long sum = 0;
		long square = 0;
		
		for (int i = 0; i < 101; i++) {
			sum += i;
			square += Math.pow(i, 2);
		}
		System.out.println(String.format("%.2f",Math.pow(sum, 2)));
		System.out.println("Square: "+square);
		System.out.println(String.format("%.2f", Math.pow(sum, 2)-square));
	}

}
